package ABBB;

public class Ying implements Yingpan {
    private int rongliang;

    public int getRongliang() {
        return rongliang;
    }

    public void setRongliang(int rongliang) {
        this.rongliang = rongliang;
    }

    public Ying(int rongliang) {
        this.rongliang = rongliang;
    }

    public void work() {
        System.out.println( "这个硬盘的容量是：" + rongliang);
    }

    @Override
    public void jieru() {
        System.out.println("插上" + rongliang + "的硬盘");
    }

    @Override
    public void bachu() {
        System.out.println("移除" + rongliang + "的硬盘");
    }
    public String toString() {
        return"容量："+rongliang;
    }
}
